/*
 * Copyright (c) 2006 - 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;


/**
 * <p>Project: app2022 - cn.webrx.Exception1
 * <p>Powered by webrx On 2022-01-14 10:41:03
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Exception1 {
    public static void main(String[] args) {
        System.out.println("start....");
        try{
            int i = 3/0;
            System.out.println("ok");
        }catch(Exception e){
            e.printStackTrace();
            System.out.println(e.getMessage()); /// by zero
            System.out.println("整除错误，分母不能0");
        }

        System.out.println("end");
        System.out.println(2*3*6);

        int[] aa = {1,2,3,4};
        System.out.println(aa[aa.length]);
    }
}
